#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QGridLayout>

#include "shuxie.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();



     bool open_file(QString file);
     void show_hanzi();
    void clear_show();
private slots:
    void on_action_model_default_triggered();

private slots:
     void on_action_model_user_triggered();

private slots:
    void on_action_exit_triggered();

    void on_action_openfile_triggered();

    void on_action_save_triggered();


    void on_action_close_triggered();

    void on_action_isBox_triggered(bool checked);

    void on_action_isZI_triggered(bool checked);

private:
    Ui::MainWindow *ui;
    HandWriteRecognizer::Recognizer myrecognizer;
    QGridLayout *myGridLayout;
    QLabel *status_label_1;
    QLabel *status_label_2;
    QLabel *status_label_3;
    QLabel *status_label_4;
};

#endif // MAINWINDOW_H
